
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Output Functions</title>
</head>

<body>
<?php
function display_login_form() {
?>
  <p><a href="register_user_form.php">Not a member?</a></p>
  <form method="post" action="registered_members.php">
  <table bgcolor="#cccccc">
   <tr>
     <td colspan="2">Members log in here:</td>
   <tr>
     <td>Username:</td>
     <td><input type="text" name="username"/></td></tr>
   <tr>
     <td>Password:</td>
     <td><input type="password" name="passwd"/></td></tr>
   <tr>
     <td colspan="2" align="center">
     <input type="submit" value="Log in"/></td></tr>
   <tr>
     <td colspan="2"><a href="forgot_form.php">Forgot your password?</a></td>
   </tr>
 </table></form>
<?php
}
function display_registration_form() {
?>
 <form method="post" action="register_new_user.php">
 <table bgcolor="#cccccc">
   <tr>
     <td>Email address:</td>
     <td><input type="text" name="email" size="30" maxlength="100"/></td></tr>
   <tr>
     <td>Preferred username <br />(max 16 chars):</td>
     <td valign="top"><input type="text" name="username"
         size="16" maxlength="16"/></td></tr>
   <tr>
     <td>Password <br />(between 6 and 16 chars):</td>
     <td valign="top"><input type="password" name="passwd"
         size="16" maxlength="16"/></td></tr>
   <tr>
     <td>Confirm password:</td>
     <td><input type="password" name="passwd2" size="16" maxlength="16"/></td></tr>
   <tr>
   <tr>
     <td>First Name:</td>
     <td><input type="text" name="reg_user_fname" size="16" maxlength="16"/></td></tr>
   <tr>
   <tr>
     <td>Last Name:</td>
     <td><input type="text" name="reg_user_lname" size="16" maxlength="16"/></td></tr>
   <tr>
   <tr>
     <td>Address:</td>
     <td><input type="text" name="address" size="50" maxlength="100"/></td></tr>
   <tr>
   <tr>
     <td>City:</td>
     <td><input type="text" name="city" size="10" maxlength="30"/></td></tr>
   <tr>
   <tr>
     <td>
       <label for="state">State:</label>
          <select name="state" id="state" tabindex="50">
                <option value="AL" selected="selected">Alabama</option>
                <option value="AK">Alaska</option>
                <option value="AZ">Arizona</option>
                <option value="AR">Arkansas</option>
                <option value="CA">California</option>
                <option value="CO">Colorado</option>
                <option value="CT">Connecticut</option>
                <option value="DE">Delaware</option>
                <option value="DC">District of Columbia</option>
                <option value="FL">Florida</option>
                <option value="GA">Georgia</option>
                <option value="HI">Hawaii</option>
                <option value="ID">Idaho</option>
                <option value="IL">Illinois</option>
                <option value="IN">Indiana</option>
                <option value="IA">Iowa</option>
                <option value="KA">Kansas</option>
                <option value="KY">Kentucky</option>
                <option value="LA">Louisiana</option>
                <option value="ME">Maine</option>
                <option value="MD">Maryland</option>
                <option value="MA">Massachusetts</option>
                <option value="MI">Michigan</option>
                <option value="MN">Minnesota</option>
                <option value="MO">Missouri</option>
                <option value="MT">Montana</option>
                <option value="NE">Nebraska</option>
                <option value="NV">Nevada</option>
                <option value="NH">New Hampshire</option>
                <option value="NJ">New Jersey</option>
                <option value="NM">New Mexico</option>
                <option value="NY">New York</option>
                <option value="NC">North Carolina</option>
                <option value="ND">North Dakota</option>
                <option value="OH">Ohio</option>
                <option value="OK">Oklahoma</option>
                <option value="OR">Oregon</option>
                <option value="PA">Pennsylvania</option>
                <option value="RI">Rhode Island</option>
                <option value="SC">South Carolina</option>
                <option value="SD">South Dakota</option>
                <option value="TN">Tennessee</option>
                <option value="TX">Texas</option>
                <option value="UT">Utah</option>
                <option value="VT">Vermont</option>
                <option value="VA">Virginia</option>
                <option value="WA">Washington</option>
                <option value="WV">West Virginia</option>
                <option value="WI">Wisconsin</option>
                <option value="WY">Wyoming</option>
            </select>
          </select>
       </select></td></tr>
   <tr>
   <tr>
     <td>Zip:</td>
     <td><input type="text" name="zip" size="10" maxlength="30"/></td></tr>
   <tr>
   <tr>
     <td>Country:</td>
     <td><input type="text" name="country" size="10" maxlength="30"/></td></tr>
   <tr>
   <tr>
     <td>Phone:</td>
     <td><input type="text" name="phone" size="10" maxlength="30"/></td></tr>
   <tr>
   <tr>
     <td>SSN:</td>
     <td><input type="text" name="reg_user_ssn" size="10" maxlength="30"/></td></tr>
   <tr>
   <td>Date of Birth:</td>
     <td><input type="text" name="reg_user_dob" size="10" maxlength="30"/></td></tr>
   <tr>
     <td colspan=2 align="center">
     <input type="submit" value="Register"></td></tr>
 </table></form>
<?php
}
?>
</body>
</html>
<?php
mysql_free_result($rs_states);
?>
